package com.tarena.lbs.user.dao.repository;

import com.github.pagehelper.PageInfo;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.user.pojo.po.AdminPO;
import com.tarena.lbs.user.pojo.query.AdminQuery;
import com.tarena.lbs.user.pojo.vo.AdminVO;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface AdminRepository {


    AdminPO selectById(Integer id);

    PageInfo<AdminPO> pageList(AdminQuery query);

    Long selectByAccountPhone(String accountPhone);

    void save(AdminPO adminPO);

    List<AdminPO> getPasswordByPhone(String phone);

    void delete(Integer id);

    void resetPassword(AdminPO adminPO);
}
